<script type="text/template" id="paging-tpl">
<div class="bom mt5" id="paging">
  <div class="paging">
    <span class="tot">共计<b>${paging.total_count}</b>项</span>
    {@if paging.current_page >= paging.scope}<a onclick="pageturn(${paging.first_page})">首 页</a>{@/if}
    {@if paging.first_page == paging.current_page}<span class="disabled">上一页</span>{@else}<a onclick="pageturn(${paging.prev_page})">上一页</a>{@/if}
    {@each paging.all_pages as v}
    {@if paging.current_page == v}<span class="cur">${paging.current_page}</span>{@else}<a onclick="pageturn(${v})">${v}</a>{@/if}
    {@/each}
    {@if paging.last_page == paging.current_page}<span class="disabled">下一页</span>{@else}<a onclick="pageturn(${paging.next_page})">下一页</a>{@/if}
    {@if paging.total_page - paging.current_page >= paging.scope}<a onclick="pageturn(${paging.last_page})">末 页</a>{@/if}
    <span class="pct">页码 <b>${paging.current_page}</b> / ${paging.total_page}</span>
  </div>
</div>
</script>